<!-- Pagetitle -->
<h1 class="pagetitle">Guias não Geradas</h1>
<div class='tabela'>
  <table>
    <th class="top" scope="col" width="100px">N&ordm; da Guia</th>
    <th class="top" scope="col" width="110px">Data</th>
    <th class="top" scope="col">Nome</th>
    <th class="top" scope="col" width="80px">Opções</th>
    <% for guia in @guias %>
      <tr>
        <td><%=h guia.numeroguiaprincipal %></td>
        <td><%=h guia.dataemissaoguia.to_s_br %></td>
        <td><%=h guia.nomebeneficiario.upcase_br%></td>
        <td>
          <%= link_to(image_tag('magnifier.png',:class=> 'left',:style =>'clear:left;border:0px;'), guia_path(guia))%> 
          <%= link_to(image_tag('edit.png', :class=> 'center',:style =>'clear:center;border:0px;'), edit_guia_path(guia)) %> 
          <%= link_to(image_tag('cross.png', 
              :class=> 'right', 
              :style =>'clear:right;border:0px;position:absolute;float:right;'), 
              :controller => "guias", :action => "apagar_nao_geradas", :id => guia, 
              :confirm => 'Tem certeza?', :method => :post) %>
        </td>
      </tr>
    <% end %>
  </table>
  <center><%= will_paginate @guias %></center>
</div>
